import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.io.File;

import javax.swing.JTextField;


public class MouseListenerImpl implements MouseListener {

	public JTextField field = null;
	
	public void mouseClicked(MouseEvent arg0) {
		System.out.println("Validé !");
		System.out.println(field.getText());
		File fichier;
		fichier = new File("/home/valleo/Bureau/test");
		if (fichier.exists())
			System.out.println("cool");
		
			
	}

	public void mouseEntered(MouseEvent arg0) {
		// TODO Auto-generated method stub

	}

	public void mouseExited(MouseEvent arg0) {
		// TODO Auto-generated method stub

	}

	public void mousePressed(MouseEvent arg0) {
		// TODO Auto-generated method stub

	}

	public void mouseReleased(MouseEvent arg0) {
		// TODO Auto-generated method stub

	}
	
	public void setTextField(JTextField field)
	{
		this.field = field;
	}

}
